package com.nopay.cdxphone.ui.adapter;

import android.widget.ImageView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.nopay.cdxphone.bean.SettingBean;

import java.util.List;

import com.nopay.cdxphone.R;


/**
 * @ProjectName: guizhou_assets
 * @Package: dhc.guizhou.assets.view.adapter
 * @ClassName: TollAdapter
 * @Description: 今日统计
 * @Author: Kawaii's cat
 * @CreateDate: 2020-6-2 11:13
 * @UpdateUser: 更新者：
 * @UpdateDate: 2020-6-2 11:13
 * @UpdateRemark: 更新说明：
 * @Version: 1.0
 */
public class SettingAdapter extends BaseQuickAdapter<SettingBean, BaseViewHolder> {

    public SettingAdapter(@Nullable List<SettingBean> data) {
        super(R.layout.item_setting, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, SettingBean item) {
        helper.setText(R.id.tv, item.getContent());
        helper.setText(R.id.tv_content, item.getDesc());
        helper.addOnClickListener(R.id.rl);
        Glide.with(mContext).load(item.getDrawable()).into((ImageView) helper.getView(R.id.iv));

    }

}